import { ReqPage } from "@/api/interface/index";
import http from "@/api";

/**
 * @name 培训方案控制模块
 */

// 下发培训方案
export const sendTrainPlan = (params: { planId: number }) => {
  return http.post(`/electcollect/trainPlan/control/send`, params);
};
// 下发记录详情
export const getSendRecordDtl = (params: { controlId: string }) => {
  return http.post(`/electcollect/trainPlan/control/detail`, params);
};

// 试题选择列表
export const getSendRecordList = (params: ReqPage & { planId: number }) => {
  return http.post(`/electcollect/trainPlan/control/query`, params);
};
